package com.itsu.api.controllerApi;

import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.multipart.MultipartFile;

@RequestMapping("smallVideos")
public interface VideoControllerApi {

    @PostMapping
    ResponseEntity publishVideo(@RequestParam("videoThumbnail") MultipartFile videoThumbnail,
                                @RequestParam("videoFile") MultipartFile videoFile);

    @GetMapping
    ResponseEntity getVideos(@RequestParam("page") Integer page,
                                @RequestParam("pagesize") Integer pagesize);

}
